package com.th.supcom.pds.internal.api.phamapply;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.pojo.InpPhamDispenseDetail;

public interface InpPhamDispenseDetailBasicService
{
    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (InpPhamDispenseDetailBasicService.class);

    /**
     * 通过主键ID批量更新表记录.
     * 
     * @param list 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamDispenseDetailList (List <InpPhamDispenseDetail> list);

    /**
     * 批量添加摆药明细.
     * 
     * @param inpPhamDispenseDetail 插入的传输对象.
     */
    public void addInpPhamDispenseDetailList (List <InpPhamDispenseDetail> list);

    /**
     * 通过请领明细主键查询请领明细对应摆药明细
     * 
     * @param list
     * @return
     */
    public List <InpPhamDispenseDetail> findDispenseDetailListByApplyDetailIdList (List <Long> list);

    /**
     * 通过主键ID查询表记录.
     * 
     * @param id 主键ID
     * @return 返回InpPhamDispenseDetail
     */
    public InpPhamDispenseDetail getInpPhamDispenseDetailByID (Long id);

    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return InpPhamDispenseDetail 结果对象.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetailListByExample (InpPhamDispenseDetail inpPhamDispenseDetail);
    
    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return InpPhamDispenseDetail 结果对象.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetail (InpPhamDispenseDetail inpPhamDispenseDetail);
    

    /**
     * 通过传输对象对应值查询表记录条数.
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return 条数.
     */
    public int findInpPhamDispenseDetailCountByExample (InpPhamDispenseDetail inpPhamDispenseDetail);
    /**
     * 通过传输对象对应值查询表记录条数.(核对发药查询)
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return 条数.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetailListByCondition (InpPhamDispenseDetail inpPhamDispenseDetail);
    /**
     * 通过主键ID更新表记录.
     * 
     * @param inpPhamDispenseDetail 要更新的传输对象
     * @return 返回更新条数
     */
    public int modifyInpPhamDispenseDetail (InpPhamDispenseDetail inpPhamDispenseDetail);

    /**
     * 通过主键ID更新表记录，字段有值才更新.
     * 
     * @param inpPhamDispenseDetail 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamDispenseDetailByExample (InpPhamDispenseDetail inpPhamDispenseDetail);

    /**
     * 通过VO对象插入记录.
     * 
     * @param inpPhamDispenseDetail 要插入的传输对象
     */
    public void addInpPhamDispenseDetail (InpPhamDispenseDetail inpPhamDispenseDetail);

    /**
     * 通过主键ID删除表记录.
     * 
     * @param id 要删除的表的主键ID
     * @return 删除条数
     */
    public int removeInpPhamDispenseDetailByID (Long id);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, XuNuo Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}
